//
//  UIView+MBInframe.m
//  Zuker
//
//  Created by MB__Lee on 2018/5/15.
//  Copyright © 2018年 zuke.com. All rights reserved.
//

#import "UIView+MBInframe.h"

@implementation UIView (MBInframe)
-(BOOL)MBContaisPoint:(CGPoint)point{
    CGFloat max_x = CGRectGetMaxX(self.frame);
    CGFloat minx_x = CGRectGetMinX(self.frame);
    CGFloat max_y = CGRectGetMaxY(self.frame);
    CGFloat min_y = CGRectGetMinY(self.frame);
    
    if (point.x >  minx_x && point.x < max_x && point.y < max_y && point.y > min_y) {
        return  YES;
    }
    return  NO;
}
@end
